package com.zang.threadschema.immutable.test;

/**
 * 位置可变
 *
 * @author Zhang Qiang
 * @Date 2019/9/10 18:27
 */
public class Location {
    private double x;
    private double y;

    public Location(){}
    public Location(double x, double y){
        this.x = x;
        this.y = y;
    }

    public void setXY(double x, double y){
        this.x = x;
        this.y = y;
    }

    public double getX() {
        return x;
    }

    public void setX(double x) {
        this.x = x;
    }

    public double getY() {
        return y;
    }

    public void setY(double y) {
        this.y = y;
    }
}
